package com.yzk.test;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.opensymphony.xwork2.ActionSupport;
import com.yzk.user.model.SysUser;
import com.yzk.user.service.IUserSer;

@Namespace("/")
@Results( { @Result(name = "ok", location = "/ok.html") })
public class Sysuser1Action extends ActionSupport {

	private static final long serialVersionUID = 1L;

	private SysUser entity;
	private IUserSer iUserSer ;

	public String saveuser() {
		System.out.println("run saveuser method");
		entity = new SysUser();
		entity.setLoginName("1");
		entity.setLoginPassword("2");
		entity.setNickName("3");
		entity.setEmail("abc@adfg.com");
		
		return "ok";
	}
	
	
	public SysUser getEntity() {
		return entity;
	}

	public void setEntity(SysUser entity) {
		this.entity = entity;
	}


	public IUserSer getiUserSer() {
		return iUserSer;
	}


	@Resource
	public void setiUserSer(IUserSer iUserSer) {
		this.iUserSer = iUserSer;
	}
	
	
	
}
